package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商
 */

@TableName("t_supplier")
public class SupplierBean {
    //编号
    @TableId(value = "pk_Id" ,type = IdType.AUTO)
    private Integer id;
    //供应商名称
    @TableField("s_name")
    private String name;
    //负责人
    @TableField("s_principal")
    private String principal;
    //电话
    @TableField("s_phone")
    private String phone;
    //地址
    @TableField("s_address")
    private String address;
    //经营范围
    @TableField("s_manage")
    private String manage;

    public SupplierBean() {
    }

    public SupplierBean(String name, String principal, String phone, String address, String manage) {
        this.name = name;
        this.principal = principal;
        this.phone = phone;
        this.address = address;
        this.manage = manage;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getManage() {
        return manage;
    }

    public void setManage(String manage) {
        this.manage = manage;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", principal='" + principal + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", manage='" + manage + '\'' +
                '}';
    }
}

